package com.ty.service;

import com.ty.dao.VendorDao;
import com.ty.entity.VendorQuery;
import org.springframework.beans.factory.annotation.Autowired;
import com.ty.entity.Vendor;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class VendorService{

    @Autowired
    private VendorDao vendorDao;

    public List<Vendor> select (VendorQuery query){
        return vendorDao.select(query);
    }

    public  Integer insert(Vendor vendor){
        return vendorDao.insert(vendor);
    }

    public Integer update (Vendor vendor){
        return vendorDao.update(vendor);
    }

    public Integer delete (Integer id){
        return vendorDao.delete(id);
    }
}